const db = uniCloud.database();
module.exports = async function(options = {}) {
	const { groupCode, characterId } = options;
	const token = this.getUniIdToken();
	if (!token || !groupCode || !characterId) {
		throw new Error('非法访问');
	}
	await db.collection('a-dz-group-apply-list').where({ groupCode, characterId }).remove();
	return {
		code: 0,
		msg: '删除成功'
	}
}